package com.rico.deploy.service.impl;

import com.rico.deploy.entity.ClassTime;
import com.rico.deploy.mapper.ClassTimeMapper;
import com.rico.deploy.service.ClassTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 夏智力
 * @FileName ClassTimeServiceImpl
 * @date 2021/5/2 16:11
 * @Software: IntelliJ IDEA
 */
@Service
public class ClassTimeServiceImpl implements ClassTimeService {
    @Autowired
    private ClassTimeMapper classTimeMapper;

    @Override
    public List<ClassTime> selectAll() {
        return classTimeMapper.selectAll();
    }

    @Override
    public ClassTime selectById(Integer id) {
        return classTimeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int insertClassTime(ClassTime classTime) {
        return classTimeMapper.insert(classTime);
    }

    @Override
    public int deleteClassTimeById(Integer id) {
        return classTimeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int updateClassTime(ClassTime classTime) {
        return classTimeMapper.updateByPrimaryKey(classTime);
    }
}
